home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 422_03 / quickref.doc < prev    next >
Encoding:
Text File  |  1994-02-14  |  13.4 KB  |  294 lines

  1.                 ** PC Utilities - Quick Reference **
  2. ----------------------------------------------------------------------
  3. CHATTR.COM  -   Change attributes of files
  4.             Options:
  5.                 +/-A    = ADD/REMOVE Archive bit
  6.                 +/-H    = ADD/REMOVE Hidden bit
  7.                 +/-R    = ADD/REMOVE Readonly bit
  8.                 +/-S    = ADD/REMOVE System bit
  9.             Examples:
  10.                 chattr \dos\*.* +r
  11.                 chattr \temp\*.* -a
  12.                 chattr c:\command.com +h +r
  13.  
  14.  
  15. DIFF.COM    -   Fast compare for file differences.
  16.             Options:
  17.                 -d      = Inhibit display of differences
  18.                 -l      = Inhibit display of line numbers
  19.                 r=num   = Minimum # lines to re-syncronize
  20.  
  21.  
  22. DR.COM      -   Display OLDest and NEWest files in a directory tree
  23.             Options:
  24.                 -? or ? = Display help info.
  25.                 -h      = Exclude HIDDEN files
  26.                 -n      = Inhibit display of NEWest file
  27.                 -o      = Inhibit display of OLDest file
  28.                 -r      = Inhibit recursion into sub-directories
  29.                 -s      = Exclude SYSTEM files
  30.                 -v      = Inhibit startup message (header)
  31.  
  32.  
  33. DUMP.COM    -   Dump contents of file(s)
  34.             Options:
  35.                 -f      = Pause between each file
  36.                 -o      = Use OCTAL dump (default is HEX)
  37.                 -p      = Pause between each block
  38.  
  39.  
  40. DUS.COM     -   Display Disk Usage Summary
  41.             Options:
  42.                 -? or ? = Display help info.
  43.                 -c      = Produce CUMULATIVE display
  44.                 -d      = Inhibit individual display (total only)
  45.                 -h      = Exclude HIDDEN files
  46.                 -p      = Pause between each output page
  47.                 -r      = Inhibit recursion into sub-directories
  48.                 -s      = Exclude SYSTEM files
  49.                 -v      = Inhibit startup message (header)
  50.             Examples:
  51.                 dus c:\ -c
  52.                 dus \project -d
  53.  
  54.  
  55. EDT.EXE     -   Fast and simple text editor.
  56.             Options:
  57.                 -v      = Inhibit visual mode on startup (force line mode).
  58.             Special keys:
  59.                 PgDn        = Page forward
  60.                 PgUp        = Page backward
  61.                 CTRL-PgUp   = Goto start of file
  62.                 CTRL-PgDn   = Goto end of file
  63.                 Home        = Goto start of line
  64.                 End         = Goto end of line
  65.                 CTRL-Home   = Redraw screen
  66.                 CTRL- '->'  = Move one word to the right
  67.                 CTRL- '<-'  = Move one word to the left
  68.                 INS         = Toggle insert/overwrite mode
  69.                 DEL         = Delete character under cursor
  70.                 BACKSPACE   = Delete character preceeding cursor
  71.                 F1          = Toggle EOL display on/off
  72.                 F2          = Display cursor position
  73.                 F3          = Current line to top of screen
  74.                 F4          = Tag line(s)
  75.                 F5          = Delete to end of line (inclusive)
  76.                 F6          = Delete to end of line (exclusive)
  77.                 F7          = Insert last deleted line
  78.             F10/Keypad '+'  = Enter line mode command
  79.              F9/Keypad '-'  = Re-execute last command
  80.             Commands: format <range>COMMAND[operands]
  81.                 C           = Copy line(s) & insert before current
  82.                 D           = Delete line(s)
  83.                 F           = Display file status
  84.                 <n>H        = Set horizontal tab spacing
  85.                 I           = Insert new line(s)
  86.                 L           = List line(s) (unformatted)
  87.                 M           = Move line(s) & insert before current
  88.                 P           = Print lines (formatted)
  89.                 Q           = Quit editor
  90.                 QQ          = Quit even if unsaved changes
  91.                 R<file>     = Read and insert file before current line
  92.                 S'old'new   = Substitute 'new' for 'old'
  93.                 T           = Tag line(s)
  94.                 V           = Toggle visual/line mode
  95.             *   W[file]     = Write file
  96.             *   X[file]     = Exit and write file
  97.             **  ?text       = Search for text (from start of range)
  98.             *** $[command]  = Execute DOS command
  99.                             = Null command moves to first line of range
  100.             *   = Default range for these commands in entire file.
  101.             **  = In visual mode, default range for '?' causes it to begin
  102.                   searching from the first character AFTER the current cursor
  103.                   position. This allows it to be repeated for multiple finds.
  104.             *** = '$' with no operands will invode a DOS command shell, use
  105.                   the 'EXIT' command to return to EDT.
  106.             Line Ranges:
  107.                 *           = Current line (Usually default)
  108.                 /           = Entire file
  109.                 n           = Line number (n=1 or higher)
  110.                 0           = End of file
  111.                 =           = Tagged lines
  112.                 <r>,<r>     = Lines between FIRST lines of two other ranges
  113.             Examples:
  114.                 D           = Delete current line
  115.                 1,10c       = Copy lines from 1 to 10 (inclusive) and
  116.                               insert them before current line.
  117.                 =m          = Move tagged lines to just before current line.
  118.                 /r my.fil   = Insert 'my.fil' at BEGINNING of file
  119.                 0r my.fil   = Insert 'my.fil' at END of file
  120.  
  121.  
  122. EXTRACT.COM - Extract a section of a larger file
  123.             Examples:
  124.                 extract file1 100 200 >file2
  125.                 
  126.  
  127. FDIR.COM    -   Fullscreen DIRectory shell.
  128.             Options:
  129.                 (+ or -)Attribute
  130.             Examples:
  131.                 FDIR -h     - Do not display HIDDEN FILES
  132.                 FDIR -d     - Do not display DIRECTORIES
  133.                 FDIR C:\ +v - Include VOLUME LABEL in display
  134.                 FDIR -hs    - No HIDDEN or SYSTEM files
  135.             Special keys:
  136.                 PgDn        = Page forward
  137.                 PgUp        = Page backward
  138.                 CTRL-PgUp   = Goto start of directory
  139.                 CTRL-PgDn   = Goto end of directory
  140.                 Home        = Goto start of line
  141.                 End         = Goto end of line
  142.                 CTRL-Home   = Redraw screen
  143.                 INS         = Toggle insert/overwrite mode
  144.                 DEL         = Delete character under cursor
  145.                 BACKSPACE   = Delete character preceeding cursor
  146.                 F1          = Toggle automatic filename ON/OFF
  147.                 F2          = Toggle command display ON/OFF
  148.                 F3          = Toggle pausing after commands ON/OFF
  149.                 F4          = Copy last command
  150.                 F5          = Clear command field
  151.             F10/Keypad '+'  = Execute commands (exit if none)
  152.              F9/Keypad '-'  = Exit even if commands are present.
  153.             Notes:
  154.                 Any DOS command may be entered beside a filename,in which case
  155.                 that command will be executed on that file when the Keypad '+'
  156.                 key is pressed. The following special characters may be used in
  157.                 the commands:
  158.                     @   = Substitute FILENAME & EXTENSION (No path)
  159.                     $   = Substitute FILENAME (No path or extension)
  160.                     ^   = Substitute DIRECTORY PATH (No name or extension)
  161.                     !   = Protect next char from substition
  162.                 If none of the special substitution characters "@$^!" are used,
  163.                 FDIR will append the entire filepath and name to the command
  164.                 (Unless of course the 'f+' switch has been turned off)
  165.             Examples:
  166.                 FDIR \cmds
  167.                 -> COPY ^@ @    - Copy file from \cmds to current
  168.  
  169.  
  170. FSCAN.COM   -   FILE SCANNER, records file sizes & CRC's in an "index"
  171.                 file, "\FSCAN.IDX"  which can then be compared with the
  172.                 file on the disk, to detect changes.
  173.             Options:
  174.                 +b          = Keep backup of index file
  175.                 +d          = Delete files from index file
  176.                 i=name      = Specify alternate index file
  177.                 +l          = List files recorded in index file
  178.                 +m          = Mark file in index file (update)
  179.                 -v          = Inhibit informational messages
  180.             Examples:
  181.                 fscan               <- Check all files in index
  182.                 fscan \dos          <- Check only \dos\*.*
  183.                 fscan +m \dos       <- Record all files from \dos
  184.                 fscan +d FSCAN.$$$  <- Remove FSCAN.$$$
  185.                 fscan +l            <- List ALL files in index
  186.                 fscan +l \dos       <- List all files in \dos
  187.                 fscan +m +b         <- Record all in current DIR
  188.                                        FSCAN.BAK = old FSCAN.IDX
  189.  
  190.  
  191. HEXED.EXE   -   Hexidecimal screen editor
  192.             Special Keys:
  193.                 PgDn        = Page forward
  194.                 PgUp        = Page backward
  195.                 CTRL-PgUp   = Goto start of file
  196.                 CTRL-PgDn   = Goto end of file
  197.                 Home        = Goto start of line
  198.                 End         = Goto end of line
  199.                 Ins         = Insert a byte at cursor location
  200.                 Del         = Delete a byte at cursor location
  201.                 F1          = Toggle between HEX/ASCII editing
  202.                 CTRL-Home   = Redraw screen
  203.             F10/Keypad '+'  = Enter command
  204.              F9/Keypad '-'  = Re-execute last command
  205.             Commands:
  206.                 G<xxxx>     = Goto address xxxx
  207.                 Q           = Quit editor
  208.                 QQ          = Quit even if unsaved changes
  209.                 W[file]     = Write file
  210.                 X[file]     = Exit and write file
  211.                 ?xx ...     = Search for HEX byte pattern
  212.                 /text...    = Search for ASCII text
  213.  
  214.  
  215. LOCATE.COM  -   FAST multiple file search
  216.             Options:
  217.                 +c  = Case sensitive search
  218.                 +r  = Recurse into sub-directories
  219.                 +t  = Display lines where text found
  220.                 -v  = Inhibit line number display
  221.             Notes:
  222.                 Allows multiple strings to be searched for at once.
  223.             Examples:
  224.                 LOCATE *.C "printf" "scanf"
  225.                 LOCATE C:\*.C "printf" +r
  226.  
  227.  
  228. OFF.COM     - Manual scren-saver
  229.             Press any key to exit
  230.  
  231. RETAB.COM   -   Retabulates files to different tab stops
  232.             Options:
  233.                 -f      = Inhibit filling with spaces
  234.                 -s      = Convert spaces to tabs where possible
  235.                 i=n,... = Specify input tab stops
  236.                 o=n,... = Specify output tab stops
  237.             Notes:
  238.                 RETAB processes multiple files, and allows the tab settings
  239.                 to be defined for each file. The '-f -s i= and o=' parameters
  240.                 must be specified BEFORE the file name where they are to have
  241.                 effect.
  242.  
  243.                 If more tabs are present in the input or output file than were
  244.                 specified (using I= and O=), RETAB assumes that the tabs
  245.                 continue at the spacing of the last two stops. Therefore, if
  246.                 the tabs are at regular intervals, only the first tab stop need
  247.                 be given.
  248.  
  249.                 Both input and output tabs default to 8 space intervals.
  250.  
  251.                 If 'O=0' is specified, RETAB will convert all tabs in the input
  252.                 file to the appriopriate number of spaces.
  253.             Examples:
  254.                 retab i=4 tab4.fil >tab8.fil
  255.                 retab o=4 tab8.fil >tab4.fil
  256.                 retab i=4 o=2 tab4.file i=8 tab8.fil >tab2.fil
  257.                 retab o=0 tab8.file >space.fil
  258.  
  259.  
  260. SIZE.COM    -   Display # lines/characters in file(s)
  261.             Examples:
  262.                 size program.c
  263.                 size prog1.c prog2.c prog.h
  264.  
  265.  
  266. TIMEIT.COM  -   Time command execution
  267.             Examples:
  268.                 timeit dir d:
  269.  
  270. TYPESET.COM -   ASCII Document formatter
  271.             Options:
  272.                 +c  = Concatinate documents
  273.                 +t  = Write to terminal (standard output)
  274.                 -v  = Inhibit progress messages
  275.                 -w  = Inhibit warnings.
  276.             See the "typeset" manual fr more information.
  277.  
  278.  
  279. WDIR.COM    -   Walk Directory & execute commands
  280.             Options:
  281.                 +r  = recurse into sub-directories
  282.                 -v  = Inhibit display of commands executed
  283.                 +m  = Use multiple (wildcard) forms of commands
  284.                       (Used with '+r' to cause a command to be executed
  285.                       once in all sub-directories that have matching files)
  286.             Notes:
  287.                 Accepts multiple commands.
  288.                 Special characters are available, same as FDIR. Ie: '@$^!'
  289.             Examples:
  290.                 wdir *.c "del" +r       <- One "DEL" command for each FILE
  291.                 wdir *.c "del" +r +m    <- One "DEL" command for each DIR
  292.                 wdir \cmds\*.bat "copy" "delete"
  293.                 (Copy all ".BAT" files from \cmds and delete them)
  294.